import json

import requests

from api.login.auth import YC_health_login


def weight():
    data={
 "ageType": 0,
 "areaCode": "",
 "cityCode": "",
 "manageEffect": 0,
 "name": "",
 "pageNum": 0,
 "pageSize": 0,
 "provinceCode": "",
 "sex": 0,
 "userId": 0
}

    HEADERS=YC_health_login()
    url='https://uchos-test.perfect99.com/mini/weightCase/moreWeightCase'
    res=requests.request(method='post',url=url,json=data,headers=HEADERS)
    return res.url,\
           res.headers,\
           res.text,\
           res.content,\
           res.status_code,\
           res.elapsed.total_seconds()*1000,res.request.method,res.request.url,res.request.body


print(weight())